home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14717 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 64 65 6e 2e 6d |Path: ne|ws.den.m|
|00000010| 6d 63 2e 63 6f 6d 21 75 | 73 65 6e 65 74 0a 46 72 |mc.com!u|senet.Fr|
|00000020| 6f 6d 3a 20 53 74 65 76 | 65 20 48 6f 77 61 72 64 |om: Stev|e Howard|
|00000030| 20 3c 68 6f 77 61 72 64 | 40 6d 74 6d 2e 73 79 72 | <howard|@mtm.syr|
|00000040| 2e 67 65 2e 63 6f 6d 3e | 0a 4e 65 77 73 67 72 6f |.ge.com>|.Newsgro|
|00000050| 75 70 73 3a 20 63 6f 6d | 70 2e 6c 61 6e 67 2e 63 |ups: com|p.lang.c|
|00000060| 2b 2b 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |++.Subje|ct: Re: |
|00000070| 77 72 69 74 69 6e 67 20 | 61 20 63 64 20 70 6c 61 |writing |a cd pla|
|00000080| 79 65 72 20 66 6f 72 20 | 77 69 6e 64 6f 77 73 0a |yer for |windows.|
|00000090| 44 61 74 65 3a 20 4d 6f | 6e 2c 20 30 31 20 41 70 |Date: Mo|n, 01 Ap|
|000000a0| 72 20 31 39 39 36 20 31 | 33 3a 30 30 3a 33 38 20 |r 1996 1|3:00:38 |
|000000b0| 2d 30 35 30 30 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |-0500.Or|ganizati|
|000000c0| 6f 6e 3a 20 4c 6f 63 6b | 68 65 65 64 20 4d 61 72 |on: Lock|heed Mar|
|000000d0| 74 69 6e 20 4f 63 65 61 | 6e 2c 20 52 61 64 61 72 |tin Ocea|n, Radar|
|000000e0| 20 26 20 53 65 6e 73 6f | 72 20 53 79 73 74 65 6d | & Senso|r System|
|000000f0| 73 20 2d 20 53 79 72 61 | 63 75 73 65 0a 4d 65 73 |s - Syra|cuse.Mes|
|00000100| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 36 30 31 39 |sage-ID:| <316019|
|00000110| 43 36 2e 34 36 45 39 40 | 6d 74 6d 2e 73 79 72 2e |C6.46E9@|mtm.syr.|
|00000120| 67 65 2e 63 6f 6d 3e 0a | 52 65 66 65 72 65 6e 63 |ge.com>.|Referenc|
|00000130| 65 73 3a 20 3c 33 31 35 | 66 66 31 35 34 2e 38 32 |es: <315|ff154.82|
|00000140| 34 37 37 30 34 40 6e 65 | 77 73 2e 69 6f 6c 2e 69 |47704@ne|ws.iol.i|
|00000150| 65 3e 0a 4e 4e 54 50 2d | 50 6f 73 74 69 6e 67 2d |e>.NNTP-|Posting-|
|00000160| 48 6f 73 74 3a 20 31 34 | 34 2e 32 31 39 2e 31 30 |Host: 14|4.219.10|
|00000170| 38 2e 32 31 39 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |8.219.Mi|me-Versi|
|00000180| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000190| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|000001a0| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|000001b0| 69 69 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |ii.Conte|nt-Trans|
|000001c0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001d0| 69 74 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |it.X-Mai|ler: Moz|
|000001e0| 69 6c 6c 61 20 32 2e 30 | 20 28 57 69 6e 4e 54 3b |illa 2.0| (WinNT;|
|000001f0| 20 49 29 0a 54 6f 3a 20 | 43 61 74 68 61 6c 20 43 | I).To: |Cathal C|
|00000200| 6c 65 61 72 79 20 3c 63 | 63 6c 65 61 72 79 40 69 |leary <c|cleary@i|
|00000210| 6f 6c 2e 69 65 3e 0a 0a | 43 61 74 68 61 6c 20 43 |ol.ie>..|Cathal C|
|00000220| 6c 65 61 72 79 20 77 72 | 6f 74 65 3a 0a 3e 20 0a |leary wr|ote:.> .|
|00000230| 3e 20 49 20 77 61 6e 74 | 20 74 6f 20 77 72 69 74 |> I want| to writ|
|00000240| 65 20 61 20 63 64 20 70 | 6c 61 79 65 72 20 70 72 |e a cd p|layer pr|
|00000250| 6f 67 72 61 6d 20 66 6f | 72 20 77 69 6e 64 6f 77 |ogram fo|r window|
|00000260| 73 20 74 68 72 6f 75 67 | 68 20 62 6f 72 6c 61 6e |s throug|h borlan|
|00000270| 64 20 63 2b 2b 0a 3e 20 | 76 34 2e 35 2e 20 43 61 |d c++.> |v4.5. Ca|
|00000280| 6e 20 61 6e 79 6f 6e 65 | 20 74 65 6c 6c 20 6d 65 |n anyone| tell me|
|00000290| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 73 20 74 | the fun|ctions t|
|000002a0| 68 61 74 20 49 20 63 61 | 6c 6c 20 74 6f 20 70 6c |hat I ca|ll to pl|
|000002b0| 61 79 2c 20 73 74 6f 70 | 2c 0a 3e 20 70 61 75 73 |ay, stop|,.> paus|
|000002c0| 65 2c 20 65 64 6a 65 63 | 74 2c 20 65 63 74 2e 2e |e, edjec|t, ect..|
|000002d0| 20 74 68 65 20 63 64 2d | 72 6f 6d 20 64 72 69 76 | the cd-|rom driv|
|000002e0| 65 2c 20 61 6e 64 20 77 | 68 65 72 65 20 74 68 65 |e, and w|here the|
|000002f0| 79 27 72 65 20 6c 6f 63 | 61 74 65 64 2e 20 44 6f |y're loc|ated. Do|
|00000300| 20 49 0a 3e 20 6e 65 65 | 64 20 74 6f 20 64 6f 77 | I.> nee|d to dow|
|00000310| 6e 6c 6f 61 64 20 61 20 | 2e 6c 69 62 20 6f 72 20 |nload a |.lib or |
|00000320| 2e 64 6c 6c 20 66 72 6f | 6d 20 73 6f 6d 65 77 68 |.dll fro|m somewh|
|00000330| 65 72 65 3f 0a 3e 20 0a | 3e 20 54 68 61 6e 6b 73 |ere?.> .|> Thanks|
|00000340| 2c 20 61 6e 64 20 73 6f | 72 72 79 20 69 66 20 74 |, and so|rry if t|
|00000350| 68 69 73 20 69 6e 66 6f | 20 69 73 20 69 6e 20 61 |his info| is in a|
|00000360| 20 46 41 51 20 73 6f 6d | 65 77 68 65 72 65 2c 20 | FAQ som|ewhere, |
|00000370| 6a 75 73 74 20 70 69 6f | 6e 74 20 6d 65 20 74 6f |just pio|nt me to|
|00000380| 0a 3e 20 69 74 20 61 6e | 64 20 49 27 6c 6c 20 73 |.> it an|d I'll s|
|00000390| 63 75 74 74 6c 65 20 6f | 66 66 20 69 6e 74 6f 20 |cuttle o|ff into |
|000003a0| 61 20 63 6f 72 6e 65 72 | 20 66 6f 72 20 61 20 77 |a corner| for a w|
|000003b0| 68 69 6c 65 20 61 6e 64 | 20 72 65 61 64 20 69 74 |hile and| read it|
|000003c0| 20 3b 29 0a 0a 54 68 65 | 72 65 20 69 73 20 65 78 | ;)..The|re is ex|
|000003d0| 61 6d 70 6c 65 20 63 6f | 64 65 20 6f 6e 20 74 68 |ample co|de on th|
|000003e0| 65 20 4d 69 63 72 6f 73 | 6f 66 74 20 44 65 76 65 |e Micros|oft Deve|
|000003f0| 6c 6f 70 65 72 73 20 4e | 65 74 77 6f 72 6b 20 43 |lopers N|etwork C|
|00000400| 44 20 73 65 74 20 66 6f | 72 20 61 20 43 44 20 50 |D set fo|r a CD P|
|00000410| 6c 61 79 65 72 2e 20 49 | 74 20 0a 75 73 65 73 20 |layer. I|t .uses |
|00000420| 74 68 65 20 6d 63 69 53 | 65 6e 64 43 6f 6d 6d 61 |the mciS|endComma|
|00000430| 6e 64 20 69 6e 74 65 72 | 66 61 63 65 20 64 65 66 |nd inter|face def|
|00000440| 69 6e 65 64 20 69 6e 20 | 74 68 65 20 57 69 6e 64 |ined in |the Wind|
|00000450| 6f 77 73 20 4d 4d 53 59 | 53 54 45 4d 2e 48 20 66 |ows MMSY|STEM.H f|
|00000460| 69 6c 65 2e 20 53 6f 6d | 65 20 0a 73 6e 69 70 70 |ile. Som|e .snipp|
|00000470| 65 74 73 20 6f 66 20 63 | 6f 64 65 20 74 6f 20 6f |ets of c|ode to o|
|00000480| 70 65 6e 20 61 6e 64 20 | 70 6c 61 79 20 61 20 43 |pen and |play a C|
|00000490| 44 20 28 66 72 6f 6d 20 | 74 68 65 20 65 78 61 6d |D (from |the exam|
|000004a0| 70 6c 65 29 20 69 73 3a | 0a 0a 0a 54 6f 20 4f 50 |ple) is:|...To OP|
|000004b0| 45 4e 3a 0a 0a 20 20 20 | 20 4f 70 65 6e 50 61 72 |EN:.. | OpenPar|
|000004c0| 61 6d 73 2e 6c 70 73 74 | 72 44 65 76 69 63 65 54 |ams.lpst|rDeviceT|
|000004d0| 79 70 65 20 3d 20 22 63 | 64 61 75 64 69 6f 22 3b |ype = "c|daudio";|
|000004e0| 0a 20 20 20 20 4f 70 65 | 6e 50 61 72 61 6d 73 2e |. Ope|nParams.|
|000004f0| 77 44 65 76 69 63 65 49 | 44 20 3d 20 30 3b 0a 20 |wDeviceI|D = 0;. |
|00000500| 20 20 20 64 77 52 65 73 | 75 6c 74 20 3d 20 6d 63 | dwRes|ult = mc|
|00000510| 69 53 65 6e 64 43 6f 6d | 6d 61 6e 64 28 30 2c 0a |iSendCom|mand(0,.|
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4d 43 | | MC|
|00000540| 49 5f 4f 50 45 4e 2c 0a | 20 20 20 20 20 20 20 20 |I_OPEN,.| |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000560| 20 20 20 20 20 20 4d 43 | 49 5f 57 41 49 54 20 7c | MC|I_WAIT ||
|00000570| 20 4d 43 49 5f 4f 50 45 | 4e 5f 53 48 41 52 45 41 | MCI_OPE|N_SHAREA|
|00000580| 42 4c 45 20 7c 20 4d 43 | 49 5f 4f 50 45 4e 5f 54 |BLE | MC|I_OPEN_T|
|00000590| 59 50 45 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |YPE,. | |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005b0| 20 20 20 28 44 57 4f 52 | 44 29 28 4c 50 56 4f 49 | (DWOR|D)(LPVOI|
|000005c0| 44 29 26 4f 70 65 6e 50 | 61 72 61 6d 73 29 3b 0a |D)&OpenP|arams);.|
|000005d0| 0a 54 6f 20 50 4c 41 59 | 3a 0a 0a 20 20 20 20 64 |.To PLAY|:.. d|
|000005e0| 77 52 65 73 75 6c 74 20 | 3d 20 6d 63 69 53 65 6e |wResult |= mciSen|
|000005f0| 64 43 6f 6d 6d 61 6e 64 | 28 4f 70 65 6e 50 61 72 |dCommand|(OpenPar|
|00000600| 61 6d 73 2e 77 44 65 76 | 69 63 65 49 44 2c 0a 20 |ams.wDev|iceID,. |
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4d 43 49 | | MCI|
|00000630| 5f 50 4c 41 59 2c 0a 20 | 20 20 20 20 20 20 20 20 |_PLAY,. | |
|00000640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000650| 20 20 20 20 20 4e 55 4c | 4c 2c 0a 20 20 20 20 20 | NUL|L,. |
|00000660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000670| 20 20 20 20 20 20 20 20 | 20 28 44 57 4f 52 44 29 | | (DWORD)|
|00000680| 28 4c 50 56 4f 49 44 29 | 26 70 6c 61 79 29 3b 0a |(LPVOID)|&play);.|
|00000690| 0a 49 66 20 79 6f 75 20 | 68 61 76 65 20 4d 4d 53 |.If you |have MMS|
|000006a0| 59 53 54 45 4d 2e 48 20 | 28 77 68 69 63 68 20 70 |YSTEM.H |(which p|
|000006b0| 72 6f 62 61 62 6c 79 20 | 63 61 6d 65 20 77 69 74 |robably |came wit|
|000006c0| 68 20 42 43 2b 2b 29 20 | 61 6e 64 20 61 20 43 44 |h BC++) |and a CD|
|000006d0| 2d 52 4f 4d 20 64 72 69 | 76 65 2c 20 79 6f 75 20 |-ROM dri|ve, you |
|000006e0| 73 68 6f 75 6c 64 20 0a | 62 65 20 61 62 6c 65 20 |should .|be able |
|000006f0| 74 6f 20 64 65 76 65 6c | 6f 70 20 61 20 70 6c 61 |to devel|op a pla|
|00000700| 79 65 72 20 75 73 69 6e | 67 20 74 68 69 73 20 69 |yer usin|g this i|
|00000710| 6e 74 65 72 66 61 63 65 | 20 77 69 74 68 6f 75 74 |nterface| without|
|00000720| 20 6d 75 63 68 20 6f 66 | 20 61 6e 79 74 68 69 6e | much of| anythin|
|00000730| 67 20 65 6c 73 65 2e 0a | 0a 0a 2d 2d 20 0a 45 2e |g else..|..-- .E.|
|00000740| 20 53 74 65 76 65 20 48 | 6f 77 61 72 64 20 20 20 | Steve H|oward |
|00000750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 20 4c | | | L|
|00000760| 6f 63 6b 68 65 65 64 20 | 4d 61 72 74 69 6e 0a 20 |ockheed |Martin. |
|00000770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7c 20 | | | |
|00000790| 4f 63 65 61 6e 2c 20 52 | 61 64 61 72 2c 20 26 20 |Ocean, R|adar, & |
|000007a0| 53 65 6e 73 6f 72 20 53 | 79 73 74 65 6d 73 20 20 |Sensor S|ystems |
|000007b0| 20 20 20 20 20 20 0a 6d | 61 69 6c 74 6f 3a 68 6f | .m|ailto:ho|
|000007c0| 77 61 72 64 40 6d 74 6d | 2e 73 79 72 2e 67 65 2e |ward@mtm|.syr.ge.|
|000007d0| 63 6f 6d 20 20 20 7c 20 | 53 79 72 61 63 75 73 65 |com | |Syracuse|
|000007e0| 2c 20 4e 59 0a | |, NY. | |
+--------+-------------------------+-------------------------+--------+--------+